import React from 'react';
import { connect } from 'umi';

import BaseSettingProvider from '@/pages/SalaryManage/components/BaseSettingProvider';
import TabStoreProvider from '@/pages/SalaryManage/components/TabStoreProvider';

const Layout = ({ setting, children }) => (
    <BaseSettingProvider setting={setting}>
        <TabStoreProvider>{children}</TabStoreProvider>
    </BaseSettingProvider>
);
const LayoutConnect = connect(({ finance }) => ({
    setting: finance?.baseSetting
}))(Layout);

export default LayoutConnect;
